package com.heima.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDTO;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;

/**
 *
 */
public interface AdSensitiveService extends IService<AdSensitive> {

    /**
     * 敏感词查询列表
     * @param dto
     * @return
     */
    @ApiOperation(value = "敏感词查询")
    ResponseResult findByNameAndPage(SensitiveDTO dto);

    /**
     * 敏感词添加
     * @param adSensitive
     * @return
     */
    @ApiOperation("敏感词添加")
    ResponseResult insert(AdSensitive adSensitive);


    /**
     * 敏感词修改
     * @param adSensitive
     * @return
     */
    @ApiOperation("敏感词修改")
    ResponseResult updateAdSensitive(AdSensitive adSensitive);

    /**
     * 敏感词删除
     * @param id
     * @return
     */
    @ApiOperation("敏感词删除")
    ResponseResult delete(Integer id);


    /**
     * 查询敏感词内容列表
     * @return
     */
    ResponseResult selectSensitives();
}
